package ligne2vie.topos.client.maps.proxy;

import com.google.gwt.maps.client.overlay.MarkerImage;
import com.google.gwt.maps.client.overlay.MarkerImage.Builder;

/**
 * The class {@link MyMarkerImage} adds functionalities in order to manage correctly {@link MarkerImage}.
 * 
 * @author thuguerre
 * @since 1.1.0
 */
public class MyMarkerImage {

	/**
	 * The method {@link #build(String)} simply creates a {@link MarkerImage} having as image the url which is given as
	 * parameter. This image can then be used to display a marker on the map.
	 * 
	 * @param url
	 *            Url of the image file to use.
	 * @return The corresponding {@link MarkerImage}.
	 */
	public static MarkerImage build(String url) {
		Builder builder = new Builder(url);
		return builder.build();
	}
}
